package com.service.impl;

import com.bean.Category;
import com.dao.CategoryMapper;
import com.service.DataBookService;

import java.util.List;

public class DataBookImpl implements DataBookService {

    private CategoryMapper categoryMapper;
    @Override
    public List<Category> findALLCategories() {
        return categoryMapper.findAll();
    }

    public CategoryMapper getCategoryMapper() {
        return categoryMapper;
    }

    public void setCategoryMapper(CategoryMapper categoryMapper) {
        this.categoryMapper = categoryMapper;
    }
}
